package com.zp.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zp.common.utils.PageUtils;
import com.zp.mall.product.entity.AttrGroupEntity;
import com.zp.mall.product.vo.AttrGroupRelationVo;
import com.zp.mall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zhangpeng
 * @email zhangpeng@aliyun.com
 * @date 2020-10-11 17:08:57
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deleteRelation(List<AttrGroupRelationVo> attrGroupRelationVos);

    PageUtils getNoAttrs(Map<String, Object> params, Long attrGroupId);

    void addAttrRelation(List<AttrGroupRelationVo> vos);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatId(Long catelogId);
}

